<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>&lt;syslog.h&gt;</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_009_309">&nbsp;</a>NAME</h4><blockquote>
syslog - definitions for system error logging
</blockquote><h4><a name = "tag_000_009_310">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;syslog.h&gt;
</code>
</pre>
</blockquote><h4><a name = "tag_000_009_311">&nbsp;</a>DESCRIPTION</h4><blockquote>
The &lt;<b>syslog.h</b>&gt; header defines the following symbolic constants, zero or
more of which may be OR-ed together to form the <i>logopt</i> option of
<i><a href="openlog.html">openlog()</a></i>:
<dl compact>

<dt>LOG_PID<dd>
Log the process ID with each message.

<dt>LOG_CONS<dd>
Log to the system console on error.

<dt>LOG_NDELAY<dd>
Connect to syslog daemon immediately.

<dt>LOG_ODELAY<dd>
Delay open until
<i><a href="syslog.html">syslog()</a></i>
is called.

<dt>LOG_NOWAIT<dd>
Don't wait for child processes.

</dl>
<p>
The following symbolic constants are defined as possible values of the
<i>facility</i> argument to
<i><a href="openlog.html">openlog()</a></i>:
<dl compact>

<dt>LOG_KERN<dd>
Reserved for message generated by the system.

<dt>LOG_USER<dd>
Message generated by a process.

<dt>LOG_MAIL<dd>
Reserved for message generated by mail system.

<dt>LOG_NEWS<dd>
Reserved for message generated by news system.

<dt>LOG_UUCP<dd>
Reserved for message generated by UUCP system.

<dt>LOG_DAEMON<dd>
Reserved for message generated by system daemon.

<dt>LOG_AUTH<dd>
Reserved for message generated by authorisation daemon.

<dt>LOG_CRON<dd>
Reserved for message generated by the clock daemon.

<dt>LOG_LPR<dd>
Reserved for message generated by printer system.

<dt>LOG_LOCAL0<dd>
Reserved for local use.

<dt>LOG_LOCAL1<dd>Reserved for local use.

<dt>LOG_LOCAL2<dd>Reserved for local use.

<dt>LOG_LOCAL3<dd>Reserved for local use.

<dt>LOG_LOCAL4<dd>Reserved for local use.

<dt>LOG_LOCAL5<dd>Reserved for local use.

<dt>LOG_LOCAL6<dd>Reserved for local use.

<dt>LOG_LOCAL7<dd>Reserved for local use.

</dl>
<p>
The following are declared as macros for constructing the <i>maskpri</i>
argument to
<i><a href="setlogmask.html">setlogmask()</a></i>.
The following macros expand to an expression of type <b>int</b> when the
argument <i>pri</i> is an expression of type <b>int</b>:
<dl compact>

<dt>LOG_MASK(<i>pri</i>)<dd>
A mask for priority <i>pri</i>.

</dl>
<p>
The following constants are defined as possible values for the <i>priority</i>
argument of
<i><a href="syslog.html">syslog()</a></i>:
<dl compact>

<dt>LOG_EMERG<dd>
A panic condition was reported to all processes.

<dt>LOG_ALERT<dd>
A condition that should be corrected immediately.

<dt>LOG_CRIT<dd>
A critical condition.

<dt>LOG_ERR<dd>
An error message.

<dt>LOG_WARNING<dd>
A warning message.

<dt>LOG_NOTICE<dd>
A condition requiring special handling.

<dt>LOG_INFO<dd>
A general information message.

<dt>LOG_DEBUG<dd>
A message useful for debugging programs.

</dl>
<p>
The following are declared as functions and may also be defined as macros.
Function prototypes must be provided for use with an ISO C
compiler.
<pre>
<code>
void  <a href="closelog.html">closelog</a>(void);
void  <a href="openlog.html">openlog</a>(const char *, int, int);
int   <a href="setlogmask.html">setlogmask</a>(int);
void  <a href="syslog.html">syslog</a>(int, const char *, ...);
</code>
</pre>
</blockquote><h4><a name = "tag_000_009_312">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_009_313">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_009_314">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="closelog.html">closelog()</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
